# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-reportlab
_pkgname=reportlab
pkgver=3.5.32
pkgrel=4
pkgdesc='The Reportlab Toolkit.'
url='https://pypi.org/project/reportlab/#files'
arch=('x86_64' 'aarch64')
license=('BSD')
depends=('python2' 'python2-pillow6' 'python2-pip' 'freetype2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('0bc647926072e96cff73cac13720f09a810b7998335e31f4357c6dd73a257c45ba796bdfce4ce65e1c8b63359845104986668377bd4ef89cd730007427b4d642')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

